//
//  XS_NavBar.swift
//  Pods
//
//  Created by 韩云智 on 2020/7/15.
//

import UIKit

open class XS_NavBar: UINavigationBar {
    public override init(frame: CGRect) {
        super.init(frame: frame)
        upConfig()
    }
    public required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    private func upConfig() {
        // 导航栏样式
        isTranslucent = true
        backgroundColor = .clear
        barStyle = .black
        shadowImage = UIImage()
        setBackgroundImage(UIImage(), for: .default)
        tintColor = #colorLiteral(red: 0.2588235294, green: 0.2588235294, blue: 0.2588235294, alpha: 1)
        
        titleTextAttributes = [
            .font : UIFont.xsFont(name: .semibold, 18),
            .foregroundColor : #colorLiteral(red: 0.2588235294, green: 0.2588235294, blue: 0.2588235294, alpha: 1)
        ]
    }
}
